package com.niit.mall.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.niit.mall.common.domain.dto.PageDTO;
import com.niit.mall.user.domain.po.Role;
import com.niit.mall.user.domain.query.RoleQuery;
import com.niit.mall.user.domain.vo.RoleVO;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.user.service
 * @Author: ChuXuan
 * @CreateTime: 2025-06-16  01:38
 * @Description: TODO
 * @Version: 1.0
 */

public interface IRoleService extends IService<Role> {

    RoleVO queryUserRoleByUserId(Long userId);

    PageDTO<RoleVO> queryUserRoleByPage(RoleQuery query);

    void updateRoleNum(Long roleId, int i);

    Map<String, List<String>> queryAssignmentById(Long id);

}
